package com.xzlf.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 定时任务表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "spring_scheduled_cron")
public class SpringScheduledCron {
    /**
     * 主键id
     */
    @TableId(value = "cron_id", type = IdType.AUTO)
    private Integer cronId;

    /**
     * 定时任务完整类名
     */
    @TableField(value = "cron_key")
    private String cronKey;

    /**
     * cron表达式
     */
    @TableField(value = "cron_expression")
    private String cronExpression;

    /**
     * 任务描述
     */
    @TableField(value = "task_explain")
    private String taskExplain;

    /**
     * 状态,1:正常;2:停用
     */
    @TableField(value = "status")
    private Byte status;
}